<form class="form-horizontal form-bordered" method="post" enctype="multipart/form-data">
    <div class="panel panel-default">
        <div class="panel-heading">
            <h4 class="panel-title">修改文章：<font color=red>{$articleInfo.title}</font></h4>
        </div>
        <div class="panel-body panel-body-nopadding">

            <div class="form-group">
                <label class="col-sm-1 control-label">文章标题</label>
                <div class="col-sm-10">
                    <input type="text" placeholder="文章标题" class="form-control" value="{$articleInfo.title}" name="title">
                </div>
            </div>

            <div class="form-group"  style="border-bottom:1px solid #d3d7db;">
                <label class="col-sm-1 control-label">来源</label>
                <div class="col-sm-2">
                    <input type="text" class="form-control tooltips" data-original-title="来源名称" value="{$articleInfo.source_name}" name="source_name">
                </div>
                <div class="col-sm-8">
                    <input type="text" class="form-control tooltips" data-original-title="来源地址" value="{$articleInfo.source_url}" name="source_url">
                </div>
            </div>

            <div class="form-group"  style="border-bottom:1px solid #d3d7db;">
                <label class="col-sm-1 control-label">关键字</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control tooltips" data-original-title="关键字" value="{$articleInfo.tags|arrayToString="20"}" name="tags">
                </div>
            </div>

            <div class="row">
                <div class="col-sm-6">
                    <div class="form-group"  style="border-right:1px solid #d3d7db;">
                        <label class="col-sm-2 control-label">作者</label>
                        <div class="col-sm-10" >
                            <input type="text" class="form-control tooltips" data-original-title="作者" value="{$articleInfo.author}" name="author">
                        </div>
                    </div>
                    <div class="form-group"  style="border-right:1px solid #d3d7db;">

                        <label class="col-sm-2 control-label">热度值</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control tooltips" data-original-title="热度值" value="{$articleInfo.hotnum}" name="hotnum">
                        </div>

                    </div>
                    <div class="form-group"  style="border-right:1px solid #d3d7db;">
                        <label class="col-sm-2 control-label">分类</label>
                        <div class="col-sm-10">
                            <select name="cid" class="form-control">
                                <volist name="categoryList" id="vo">
                                <option value="{$vo.id}" <eq name="vo.id" value="$cid">selected</eq>>{$vo.title}</option>
                                </volist>
                            </select>
                        </div>
                    </div>

                    <div class="form-group"  style="border-right:1px solid #d3d7db;">
                        <label class="col-sm-2 control-label">发布时间</label>
                        <div class="col-sm-10">{:W('Form/datetime',array('data'=>array('name'=>'publishtime')))}</div>
                    </div>
                </div>

                <div class="col-sm-6">
                    <div class="form-group">
                        {:W('Image/upload',array('data'=>array('name'=>'cover','maxheight'=>'196px','url'=>imageUrl($articleInfo['cover']))))}
                    </div>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-12">{:W('Form/editor',array('data'=>array('name'=>'content','content'=>$articleInfo['content'])))}</div>

            </div>


            <div class="form-group">
                <div class="col-sm-7">
                    <input type="hidden" name="mongoid" value="{$articleInfo.id}" >
                    <input type="submit" class="btn btn-primary" value=" 审核通过 " > &nbsp;
                    <a href="{:U('/article/remove?id='.$articleInfo['id'].'&cid='.$cid)}" class="btn btn-default"> 删除文章 </a> &nbsp;
                    <a href="{:U('/article/unpass?cid='.$cid)}" class="btn btn-default"> 未审核列表 </a>
                </div>
            </div>
        </div>
    </div>
</form>
